From 553624bf48e4ac40c98cef5de995e5cef95740a3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 5 Jun 1993 08:39:42 +0000 Subject: [PATCH] (x-selection-timeout): Set it, using x-get-resource. --- lisp/term/x-win.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index a0aca0814a3..ba9fee85cad 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -529,6 +529,13 @@ This returns ARGS with the arguments that have been processed removed." (setq initial-frame-alist (append initial-frame-alist (x-parse-geometry res-geometry))))) +;; Set x-selection-timeout, measured in milliseconds. +(let ((res-selection-timeout + (x-get-resource "selectionTimeout" "SelectionTimeout"))) + (setq x-selection-timeout 5000) + (if res-selection-timeout + (setq x-selection-timeout (string-to-number res-selection-timeout)))) + (defun x-win-suspend-error () (error "Suspending an emacs running under X makes no sense")) (add-hook 'suspend-hook 'x-win-suspend-error) -- 2.30.2